package com.controller;

import com.controller.vo.ResultVO;
import com.entity.ReviewLikes;
import com.service.ReviewLikesService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName ReviewLikesController
 * @Description 评论点赞控制层
 * @Author Kx
 * @Date 2025/6/10 23:49
 * @Version 1.0
 */
@RestController
@RequestMapping("reviewLikes")
public class ReviewLikesController extends BaseController {
    private final ReviewLikesService reviewLikesService;

    public ReviewLikesController(ReviewLikesService reviewLikesService) {
        this.reviewLikesService = reviewLikesService;
    }

    /**
     * @author: kx
     * @date: 2025/6/10 23:52
     * @param reviewLikes : 评论点赞信息
     * @return com.controller.vo.ResultVO<java.lang.String>
     * @description: 添加评论点赞信息
    */
    @PostMapping("addReviewLikes")
    public ResultVO<String> addReviewLikes(@RequestBody ReviewLikes reviewLikes){
        reviewLikesService.addReviewLikes(reviewLikes);
        return success("添加成功");
    }
}
